// 全局注册router
import Vue from 'vue';
import VueRouter from 'vue-router';

import Login from '@/view/login.vue';
import Home from '@/view/home.vue';
import Table from '@/view/table.vue';

// vue-router 注册router
Vue.use(VueRouter)

export default new VueRouter({
    routes:[
    {
        path:'/login',
        component:Login
    },
    {
        path:'/home',
        component:Home
    },
    {
        path:'/table',
        component:Table
    },
    
]});